<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@taglib uri="/WEB-INF/tld/components.tld" prefix="up"%>
<%@taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="pp" uri="http://java.sun.com/jsp/jstl/fmt"%>
<jsp:useBean id="agora" class="java.util.Date" />
<%@taglib tagdir="/WEB-INF/tags" prefix="p"%>

<%@page import="edu.up.beans.SonhoPersonalizadoBean"%>
<html>
<jsp:include page="header.jsp">
	<jsp:param name="function" value="Monte seu Sonho" />
</jsp:include>
<jsp:useBean id="cadSonhoBean" scope="request"
	class="edu.up.beans.SonhoPersonalizadoBean" />
<body>
<!-- begin #container -->
<div id="container"><!-- begin #header -->
<div id="header">
<div class="headerBackground"></div>
<div id="navcontainer">
<ul id="navlist">
	<li><a href="index.jsp"><up:label property="menu.home" /></a></li>
	<li id="active"><a href="Sonhos.jsp" id="current"><up:label
		property="menu.sonhos" /></a></li>
	<li><a
		href="<%=request.getContextPath()%>/RelatoriosServlet?acao=RelDepoimentos"><up:label
		property="menu.depoimentos" /></a></li>
	<li><a href="Login.jsp"><up:label property="menu.login" /></a></li>
	<li><a href="Sobre.jsp"><up:label property="menu.sobre" /></a></li>
	<li><up:countryOption country="Brasil" locale="pt_BR" /></li>
	<li><up:countryOption country="USA" locale="en_US" /></li>
	<li><up:countryOption country="Espanha" locale="es_ES" /></li>
	<li><a
		href="<%=request.getContextPath()%>/ControleServlet?funcao=Start"><img
		src="images/logout.png" alt="Logout" /></a></li>
</ul>
</div>
</div>
<!-- end #header --> <!-- begin #mainContent -->
<div id="mainContent">
<div class="t">
<div class="b">
<div class="l">
<div class="r">
<div class="bl">
<div class="br">
<div class="tl">
<div class="tr"><up:label property="texto.l40" /> <up:label
	property="texto.l41" /> <up:label property="texto.l42" /> <up:label
	property="texto.l43" />




<form id="frmMonteSeuSonho" name="frmMonteSeuSonho" method="post">
<table align="center">
	<tr>
		<up:label property="texto.l44" />
		<td><up:inputTag caracteres="30" colunas="" funcao="" linhas=""
			nome="email" tamanho="30" tipo="texto" /></td>

	</tr>
	<tr>
		<up:label property="texto.l45" />
		<td><up:inputTag caracteres="10" colunas=""
			funcao="return textPick(this, event)" linhas="" nome="data"
			tamanho="15" tipo="texto" /></td>

	</tr>
	<tr>
		<up:label property="texto.l46" />
		<td><up:inputTag caracteres="20" colunas="" funcao="" linhas=""
			nome="lugar" tamanho="20" tipo="texto" /></td>
	</tr>

	<tr align="left">
		<up:label property="texto.l47" />
		<td><select id="tipo" name="tipo">
			<option value="none"><up:label property="monte.selecione" /></option>
			<option value="Viagem"><up:label property="monte.viagem" /></option>
			<option value="Jantar"><up:label property="monte.jantar" /></option>
			<option value="Aventura"><up:label property="monte.aventura" /></option>
			<option value="Automobilismo"><up:label
				property="monte.auto" /></option>
			<option value="Outros"><up:label property="monte.outros" /></option>
		</select></td>
	</tr>
	<tr align="left">
		<up:label property="texto.l48" />
		<td><up:inputTag caracteres="" colunas="25" funcao="" linhas="8"
			nome="txtDesc" tamanho="" tipo="areaTexto" /></td>
	</tr>
	<tr>
		<td align="left"><input type="reset" name="btnReset"
			value="<up:label property="botao.limpar" />" /></td>
		<td align="right"><input type="button" name="btnSubmit"
			value="<up:label property="botao.enviar" />"
			onClick="javascript:Enviar('Gravar_personalizado');" /></td>
	</tr>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
	function Enviar(paramAcao)
		{
					alert('Sonho Criado Com Sucesso!');
					document.frmMonteSeuSonho.action="<%=request.getContextPath()%>/SonhoServlet?acao="+paramAcao;
					document.frmMonteSeuSonho.submit();
			
			
		}
	</script> <!-- end #mainContent --> <!-- begin #footer -->
<div id="footer"><br />
<br />

&nbsp; &nbsp; <strong><pp:formatDate value="${agora}"
	dateStyle="full" /></strong> &nbsp; &nbsp; || &nbsp; &nbsp; <up:label
	property="rodape.texto" /></div>
<!-- end #footer --></div>
<!-- end #container -->
</body>
</html>
